<template>
  <div>
    <van-nav-bar
        title="关于我们"
        left-text="返回"
        left-arrow
        fixed
        @click-left="onClickLeft"
    />
  </div>
  <van-popup v-model:show="show" :style="{ padding: '64px' }">{{ count }}秒后返回网站首页</van-popup>


</template>

<script setup>
const onClickLeft = () => history.back();
import {onMounted, reactive, ref} from "vue";
const count=ref(0)
const show=ref(false)
onMounted(()=>{
  show.value=true
  setInterval(()=>{
    count.value++
    if(count.value===5){
      show.value=false
    }
  },1000)
})

</script>

<style scoped>

</style>
